package com.example.book.sys.user.service;

import com.example.book.base.BaseService;
import com.example.book.sys.user.dao.SysDeptPostDao;
import com.example.book.domain.sys.SysDeptPost;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @author haocj
 * 角色权限service
 */
@Service
public class SysDeptPostService extends BaseService<SysDeptPost, SysDeptPostDao> {

    @Resource
    private SysDeptPostDao sysDeptPostDao;

    /**
     * 批量删除
     *
     * @param id
     */
    @Transactional(readOnly = false, rollbackFor = Exception.class)
    public void delete(String id) {
        sysDeptPostDao.deleteById(id);
    }
}
